package com.ruoyi.ring.mapper;

import com.ruoyi.ring.domain.RingPhysicalConditionLayout;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 身体状况布局Mapper接口
 * 
 * @author liuwp
 * @date 2025-10-09
 */
public interface RingPhysicalConditionLayoutMapper 
{
    /**
     * 查询身体状况布局
     * 
     * @param id 身体状况布局主键
     * @return 身体状况布局
     */
    public RingPhysicalConditionLayout selectRingPhysicalConditionLayoutById(Long id);

    /**
     * 查询身体状况布局列表
     * 
     * @param ringPhysicalConditionLayout 身体状况布局
     * @return 身体状况布局集合
     */
    public List<RingPhysicalConditionLayout> selectRingPhysicalConditionLayoutList(RingPhysicalConditionLayout ringPhysicalConditionLayout);

    /**
     * 可以业务主键查询一条身体状况布局
     *
     * @param ringPhysicalConditionLayout 身体状况布局
     * @return 身体状况布局集合
     */
    public RingPhysicalConditionLayout selectOneRingPhysicalConditionLayout(RingPhysicalConditionLayout ringPhysicalConditionLayout);

    /**
     * 新增身体状况布局
     * 
     * @param ringPhysicalConditionLayout 身体状况布局
     * @return 结果
     */
    public int insertRingPhysicalConditionLayout(RingPhysicalConditionLayout ringPhysicalConditionLayout);

    /**
     * 修改身体状况布局
     * 
     * @param ringPhysicalConditionLayout 身体状况布局
     * @return 结果
     */
    public int updateRingPhysicalConditionLayout(RingPhysicalConditionLayout ringPhysicalConditionLayout);

    /**
     * 条件修改身体状况布局
     *
     * @param ringPhysicalConditionLayout 身体状况布局
     * @param ringPhysicalConditionLayout 身体状况布局条件
     * @return 结果
     */
    public int updateRingPhysicalConditionLayoutCondition(@Param("ringPhysicalConditionLayout") RingPhysicalConditionLayout ringPhysicalConditionLayout, @Param("ringPhysicalConditionLayoutCondition") RingPhysicalConditionLayout ringPhysicalConditionLayoutCondition);

    /**
     * 删除身体状况布局
     * 
     * @param id 身体状况布局主键
     * @return 结果
     */
    public int deleteRingPhysicalConditionLayoutById(Long id);

    /**
     * 条件删除身体状况布局
     *
     * @param ringPhysicalConditionLayout 身体状况布局
     * @return 结果
     */
    public int deleteRingPhysicalConditionLayoutByCondition(RingPhysicalConditionLayout ringPhysicalConditionLayout);

    /**
     * 批量删除身体状况布局
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRingPhysicalConditionLayoutByIds(Long[] ids);
    int deleteByUserId(Long  userId);
}
